package com.example.zhiran.pojo.option.tagoption;

/**
 * @author :robin chen
 * 标签操作返回信息message
 * messageCode range 301~399
 */
public enum TagOptionMessage {

    /**
     * 查询成功
     */
    TAG_QUERY_SUCCESS(301,"tag_query_success"),

    /**
     * 查询失败
     */
    TAG_QUERY_FAIL(302,"tag_query_fail"),

    /**
     * 增加成功
     */
    TAG_ADD_SUCCESS(311,"tag_add_sucess"),
    /**
     * 添加失败
     */
    TAG_ADD_FAIL(312,"tag_add_fail"),

    /**
     * 标签重复
     */
    TAG_REPEAT(313,"tag_repeat"),

    /**
     * 修改成功
     */
    TAG_UPDATE_SUCCESS(321,"tag_update_success"),
    /**
     * 修改失败
     */
    TAG_UPDATE_FAIL(322,"tag_update_fail"),

    /**
     * 删除成功
     */
    TAG_DELETE_SUCCESS(331,"tag_delete_success"),

    /**
     * 删除失败
     */
    TAG_DELETE_FAIL(332,"tag_delete_fail");

    private int messageCode;
    private String message;

    TagOptionMessage(int messageCode, String message) {
        this.messageCode = messageCode;
        this.message = message;
    }

    public int getMessageCode() {
        return messageCode;
    }

    public String getMessage() {
        return message;
    }
}
